package com.example.outdoor;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

public class ListView extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.list_view);
//---get the data passed in using getStringExtra()---
//Toast.makeText(this,getIntent().getStringExtra("str"),
//Toast.LENGTH_SHORT).show();
TextView txt=(TextView)findViewById(R.id.textView1);
txt.setText(getIntent().getStringExtra("str"));
}

}